package org.springblade.tms.global.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import org.springblade.common.enums.Enumerator;
import org.springblade.tms.global.anno.SelectEnum;

/**
 * @author yr
 * @Desc 用户类型
 * @Date 2022/3/7
 */
@Getter
@AllArgsConstructor
@SelectEnum(value = "user", desc = "用户类型")
public enum UserTypeEnum implements Enumerator {
	ADMIN("admin","管理员"),
	CHAUFFEUR("driver", "司机"),
	CARRIER("carrier", "承运商");

	private final String value;
	private final String description;

	@Override
	public String value() {
		return value;
	}

	@Override
	public String description() {
		return description;
	}
}
